package com.smartrodin.service;

import com.smartrodin.config.AbstractRedisDelayQueue;
import com.smartrodin.constant.RedisKeyConstant;
import org.springframework.stereotype.Component;

/**
 * Author: arnold_nie
 * Date: 2020/4/26 9:55
 * Description: 自动接单延迟订单队列名称
 */
@Component
public class CancelOrderDelayQueue extends AbstractRedisDelayQueue {

    @Override
    public void invoke(String taskId) {
        System.out.println("超时未支付自动取消======================" + taskId);
    }

    @Override
    public String setDelayQueueName() {
        return RedisKeyConstant.CANCEL_ORDER_DELAY_QUEUE_NAME;
    }
}
